// 部门管理列表查询
import request from '@/utils/request'

export function getDeptTree(params) {
  return request({
    method: 'get',
    url: '/user/department/getDepartmentTree',
    params
  })
}
// 部门编辑
export function deptUpdate(data, pikd) {
  return request({
    method: 'put',
    url: `/user/department/update/${pikd}`,
    data: data
  })
}
// 部门新增
export function deptAdd(data) {
  return request({
    method: 'post',
    url: 'user/department/add',
    data: data
  })
}
// 部门删除
export function deptDelete(pkid) {
  return request({
    method: 'delete',
    url: `user/department/delete?pkid=${pkid}`
  })
}
